let defaultState = {
    spinning: false
};
function spinReducer(state=defaultState,action){
    switch (action.type) {
        case "loading":
            return Object.assign({},state,action.data);
        default:
            return state;
    }
}
export default spinReducer;